package com.zhentao;

import java.util.concurrent.TimeUnit;

/**
 * 常量类
 */
public class Constants {

    //登录发送验证码时，放在Redis中的key前辍
    public static final  String LOGIN_PHONE_CODE_PREFIX = "LOGIN_CODE:";

    //登录发送验证码时，验证码的超期时间
    public static final  long LOGIN_PHONE_CODE_EXPIRE_TIME = 3;

    //登录发送验证码时，验证码的超期时间单位
    public static final TimeUnit LOGIN_PHONE_CODE_EXPIRE_TIMEUNIT = TimeUnit.MINUTES;

    //缓存中部门集合的Key
    public static final String CRM_CACHE_DEPTS = "CRM:CACHE:DEPTS";

    //缓存中字典集合的Key
    public static final String CRM_CACHE_DICTS = "CRM:CACHE:DICTS";

    //黑名单在Redis中的Key前辍
    public static final  String JWT_BLACK_LIST_KEY_PREFIX = "JWT_BLACK_LIST:";

    //黑名单Key的存活时长，单位：分钟,等于JWT签发的最大有效期
    public static final  int JWT_BLACK_LIST_KEY_MAX_AGE = 30;

    //登录表单上的验证码Key前辍
    public static final  String LOGIN_CAPTCHA_KEY_PREFIX = "LOGIN:CAPTCHA:";
    //商家端手机号登录发送验证码的Key前辍
    public static final  String MERCHANT_PHONE_CODE_PREFIX = "MERCHANT_PHONE_CODE:";
    //商家端用户名加密码进行登录
    public static final  String MERCHANT_USERNAME_PWD_LOGIN = "MERCHANT_USERNAME_PWD_LOGIN:";
    //用户端授权手机号
    public static final String USER_AUTHORIZATION_PHONE = "USER_AUTHORIZATION_PHONE:";







}
